﻿@model CuongHanh.Models.ServiceFee
@(Html.X()
          .FormPanel()
          .Region(Region.Center)
          .Border(false)
          .StyleSpec("background-color:white;")
          .Padding(10)
          .Items(form =>
                 {
                     form.Add(Html.X().HiddenFor(m => m.Id));
                     form.Add(Html.X()
                             .TextFieldFor(m => m.Code)
                             .FieldLabel("Mã")
                             .Width(500)
                             );
                     form.Add(Html.X()
                             .TextFieldFor(m => m.Name)
                             .FieldLabel("Tên")
                             .Width(500)
                             );
                     form.Add(Html.X()
                             .NumberFieldFor(m => m.ShippingCost)
                             .FieldLabel("Phí giao hàng")
                             .Width(500)
                             );
                     form.Add(Html.X()
                             .NumberFieldFor(m => m.UtilityFee)
                             .FieldLabel("Phí tiện ích")
                             .Width(500)
                             );
                     form.Add(Html.X()
                             .CheckboxFor(m => m.InVietNam)
                             .FieldLabel("Ở Việt Nam")
                             .Width(500)
                             );
                     form.Add(Html.X()
                             .Button()
                             .ID("btUpdate")
                             .Text("Lưu lại")
                             .FormBind(true)
                             .StyleSpec("margin-left:105px;")
                             .DirectClickAction("Add")
                             );
                     form.Add(Html.X()
                             .Button()
                             .ID("btCancel")
                             .Text("Hủy")
                             .StyleSpec("margin-left:10px;")
                             .OnClientClick("App.wdModify.hide();")
                             );
                 }))